package day1125;

import java.lang.reflect.Array;
import java.util.Arrays;

public class demo6 {
    public static void main(String[] args) {
        int[] a={1,2,3,4,5};
        int[] b= Arrays.copyOf(a,2);
        a=Arrays.copyOf(a,2);
        System.out.println(b[0]);
        tostring(a);
    }

    private static void tostring(int[] a) {
        String sum="zzz";
        for(int i=0;i< a.length;i++)
        {
            sum=sum+a[i];
        }
        System.out.println(sum);
    }


}
